//
//  XXConfig.swift
//  XXIOT
//
//  Created by xx on 2024/8/19.
//

import FastSwiftSDK


public let themeColor = UIColor.hex("1296db")
public let bgColor = UIColor.hex("eeeeee")

public let color_green = UIColor.hex("45b97c")
public let color_red = UIColor.hex("b22c46")
public let color_gray = UIColor.hex("9d9087")

public let btnHeigth = 45
public let btnWidth = 85

public let btnSize = kSize(CGFloat(btnWidth), CGFloat(btnHeigth))

public let deviceTopics:Dictionary<String,Any> = [
    "RELAY":[
        "name":"开关",
        "topics":["XX/RELAY/SWITCH"],
    ]
]

let userId = idfa

// MARK: // MQTT
enum XXTOPIC{
    // 公共
    enum PUBLIC:String {
        case SEARCH = "P/S" // topic 查询
        case SEARCH_A = "P/S_A"// topic 上报
        case HEART = "P/H" // 心跳应答
        case HEART_A = "P/H_A" // 心跳应答
        case LOG = "P/L"// Log
        
    }
    
    // 开关
    enum SWITCH:String{
        case ON = "O" // 开
        case OFF = "F"// 关
    }
}

